package com.newsoft.codegen.common;


import java.util.List;
import java.util.Map;



public interface CommonMapper<T,S> {
	
	public void insert(T model);
	
	public void deleteById(Long id);
	
	public void delete(T model);
	
	public void updateById(T model);
	
	public List<T> query(T model);
	
	public T queryById(Long id);
	
	public Long count();
	
	public List<T> queryForPage(Map<String,Object> map);
	
	public List<T> queryForPages(S search);
	 
	public Long countSearch(S search);
	 
	void deleteByIds(List<String> ids);
	

}
